home *** CD-ROM | disk | FTP | other *** search
/ All for Cell Phones: Sony Ericsson / Sony-Ericsson 2004.iso / Java / sirius20 / sirius.jar / c.class (.txt) < prev    next >
Encoding:
Java Class File  |  2003-01-07  |  1.3 KB  |  69 lines

  1. import javax.microedition.io.Connector;
  2. import javax.microedition.io.HttpConnection;
  3.  
  4. // $FF: renamed from: c
  5. public class class_0 implements Runnable {
  6.    // $FF: renamed from: if int
  7.    public static int field_0 = 15;
  8.    // $FF: renamed from: for javax.microedition.io.HttpConnection
  9.    private HttpConnection field_1 = null;
  10.    // $FF: renamed from: a java.lang.Thread
  11.    private static Thread field_2 = null;
  12.    // $FF: renamed from: do int
  13.    private static int field_3 = 0;
  14.  
  15.    private class_0() {
  16.    }
  17.  
  18.    // $FF: renamed from: do () void
  19.    private void method_0() {
  20.       try {
  21.          if (this.field_1 != null) {
  22.             this.field_1.close();
  23.          }
  24.       } catch (Exception var2) {
  25.       }
  26.  
  27.       this.field_1 = null;
  28.    }
  29.  
  30.    // $FF: renamed from: a () void
  31.    public static synchronized void method_1() {
  32.       if (field_2 == null) {
  33.          field_2 = new Thread(new class_0());
  34.          field_2.start();
  35.       }
  36.  
  37.       field_3 = field_0 * 120;
  38.    }
  39.  
  40.    // $FF: renamed from: if () void
  41.    public static synchronized void method_2() {
  42.       field_3 = 0;
  43.       if (field_2 != null && field_2.isAlive()) {
  44.          try {
  45.             field_2.join();
  46.          } catch (Exception var1) {
  47.          }
  48.       }
  49.  
  50.    }
  51.  
  52.    public void run() {
  53.       try {
  54.          this.field_1 = (HttpConnection)Connector.open("http://www.nubix.de/apps/siriusxxx", 1, true);
  55.          this.field_1.getResponseCode();
  56.  
  57.          while(field_3 > 0) {
  58.             Thread.sleep(500L);
  59.             --field_3;
  60.          }
  61.       } catch (Exception var6) {
  62.       } finally {
  63.          this.method_0();
  64.          field_2 = null;
  65.       }
  66.  
  67.    }
  68. }
  69.